<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新闻列表</title>
    <link rel="stylesheet" href="../../css/reset.css">
    <!-- 整个是容器 -->
    <!-- 看需求 要写几条 -->
    <!-- 都写四条 就写死 -->
    <style>
        /* body {
            background-color: #bfa;
        } */

        .news-wrapper {
            width: 300px;
            height: 359px;
            background-color: #bfa;
            /*设置背景颜色 显示轮廓*/
            margin: 50px auto;
            /*设置居中*/
            border-top: #ddd 1px solid;
            /*设置上边框*/
            display: inline-block;
            height: 40px;
            border-top: 1px red solid;
        }
    </style>


</head>

<body>
    <div class="news-wrapper">
        <!-- 创建一个标题标签 -->
        <h2 class="news-list">
            <a href="#">体育</a>
        </h2>
        <!-- 创建一个图片的容器  -->
        <div class="news-img">
            <a href="#">
                <img src="../练习的截图img/02/1.jpg" alt="2">
                <h2>
                    1111111111111
                </h2>
            </a>
        </div>
        <ul class="news-list">
            <li>
                <a href="#">hehe</a>
            </li>
            <li>
                <a href="#">he</a>
            </li>
            <li>
                <a href="#">hehehe</a>
            </li>
            <li>
                <a href="#">hehehehe</a>
            </li>
        </ul>
    </div>
</body>

</html>